<?php
	require_once $_site->get_viewpath('admin/header');
	$path_one = 'admin/admin_system';
	$path_two = 'admin/sys_config1';
	$filename = 'admin/sys_config';
	require_once $_site->get_viewpath('admin/admin_comm');
?>
<script type="text/javascript" charset="utf-8">

	loader.file({
		plugin:['validform/main','dialog/main'],
		skincss:['list']
	});

	$(document).ready(function(){
		$("#form1").Validform({
			tiptype: function(msg, o, cssctl){
				if(!o.obj.is("form")){
					var obj = o.obj.parents('td').find("tt");
					cssctl(obj, o.type);
					obj.text(msg);
				}
			},
			ajaxPost:true,
			callback:function(result){
				if (!result.state) {
					dialog.finish({
						success:result.state,
						content:result.msg
					})
					return false;
				}
				dialog.finish({
					success:true,
					content:result.msg,
					callback:function(){
						location.reload();
					}
				})
			}
		})
	})
</script>
</head>

<body>
		<div class="position_nav">
		<a href="javascript:window.history.go(-1);" class="add_button2 back_btn"><em class="back_ico">返回</em></a>
		你所在的当前位置： <?php echo $path_str;?>
		</div>
	<div class="main">
<div class="power_box">

<form action="/handle.php" method="post" id="form1">
	<input type="hidden" name="h" value="user_config/update">
		<table class="table table_text" cellpadding="0" cellspacing="1" bgcolor="0">
		<tr>
			<td class="left">网站标题：</td>
			<td><input type="text" name="r[title]" value="<?php echo $list['title']['v'];?>" datatype="*"  nullmsg="请填写网站名称" class="w260"/><tt></tt></td>
		</tr>
		<tr>
			<td class="left">网站关键字：</td>
			<td>
				<textarea name="r[keywords]" cols="" class="w355" rows=""  datatype="*"  nullmsg="请填写网站关键字"><?php echo $list['keywords']['v'];?></textarea>
			<tt></tt></td>
		</tr>
		<tr>
			<td class="left">站点描述：</td>
			<td><textarea name="r[description]" cols="28" class="w355" rows="3"><?php echo $list['description']['v'];?></textarea></td>
		</tr>
		<tr>
			<td class="left">站点域名：</td>
			<td><input type="text" name="r[url]" class="w260" value="<?php echo $list['url']['v'];?>" /></td>
		</tr>
		<tr>
			<td class="left">版权信息：</td>
			<td><input type="text" name="r[copyright]" class="w260" value="<?php echo $list['copyright']['v'];?>" /></td>
		</tr>

		<tr>
			<td></td>
		<td><input type="submit" value="保存"  class="button1"></td></tr>
	</table>
</form>

</div>
</div>
</body>
</html>